package com.zxy.actspringboot.service;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

/**
 * 监听器，监听任务并向相关人员发送通知
 * @author zhangxuyuan
 * @date 2021-02-01 17:06
 */
public class ManagerTaskListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        System.out.println("发出通知");
        System.out.println("通知："+delegateTask.getAssignee());
        System.out.println(delegateTask.getName());
        System.out.println(delegateTask.getProcessInstanceId());
    }
}
